#!/usr/bin/env python
# Author: iris and jeff

PKG = 'sound_localization'

import roslib; roslib.load_manifest(PKG)
import rospy

from std_msgs.msg import String


class Listen():
    def __init__(self):
        self.pub = rospy.Publisher('audio_packet)', String)
        rospy.init_node('listen', anonymous=True)
        while not rospy.is_shutdown():
            print "listening for noise"
            self.pub.publish("hearing noise")



if __name__ == '__main__':
    try:
        st = Listen()
        rospy.spin()
    except rospy.ROSInterruptException:
        pass
